problem in .htaccess file |
[eluser]no one[/eluser]
hi all this is my first topic in forums and i hope i find a solution for my problem. the problem is:- i make htaccess file and it's content as following :- RewriteEngine on RewriteCond $1 !^(index\.php|closed\.php|files|config|install|captcha|css|tiny_mce|javascript|images|system|departments|admin|markets|members|auth|site|forum|products) RewriteRule ^(.*)$ home/view_market/$1 RewriteCond $1 !^(index\.php|closed\.php|files|config|install|captcha|css|tiny_mce|javascript|images|system) RewriteRule ^(.*)$ index.php/$1 RewriteRule products/([0-9]+)$ products/index/$1 RewriteRule products/([0-9]+)/page/(.*)$ products/index/$1/$2 RewriteRule forum/([0-9]+)$ forum/index/$1 RewriteRule forum/([0-9]+)/page/(.*)$ forum/index/$1/$2 RewriteRule members/profile/([0-9]+)$ members/home/profile/$1 RewriteRule members/profile members/home/profile/ RewriteRule members/files/done members/files/index/done RewriteRule members/comments/forum members/comments/index/forum RewriteRule admin/categories/([0-9]+)$ admin/categories/index/$1 RewriteRule admin/advertisement/([0-9]+)$ admin/advertisement/index/$1 and my variables in config.php file are:- $config['base_url'] =http://$_SERVER['SERVER_NAME']/ $config['index_page'] = ""; $config['PATH_INFO']= "PATH_INFO"; and i did not change any thing in routes.php file when i click in any link in my site it return me to the root of my site eg:when i put this url in my browser http://www.mysite.com/markets it show me the home page of my site but not redirect me to home page so all of my links show me home page http://www.mysite.com/anything -> show me the home page and mod_rewrite is enabled in my server so i did not know what is the problem .
|
Welcome Guest, Not a member yet? Register Sign In |