Hi everybody,
I have some rule defined in .htaccess file inside my webroot folder which is working fine. That rule is as follows:
My current page url according to the above rule can be:
http://www.mywebsite.c om/page/abc
and this will be translated to server as:
http://www.mywebsite.c om?index.php?pa ge=abc
Now i want to eliminate word page from my existing URL i.e. from http://www.mywebsite.c om/page/abc and want to write it like http://www.mywebsite.c om/abc
Please tell me how i can do this? or i have to define a separate rule for each n every URL?
thanx
regards
Faisal
I have some rule defined in .htaccess file inside my webroot folder which is working fine. That rule is as follows:
Code:
RewriteRule ^page/([A-Za-z0-9-]+)/?$ index.php?page=$1 [NC,L] # Process pages
http://www.mywebsite.c om/page/abc
and this will be translated to server as:
http://www.mywebsite.c om?index.php?pa ge=abc
Now i want to eliminate word page from my existing URL i.e. from http://www.mywebsite.c om/page/abc and want to write it like http://www.mywebsite.c om/abc
Please tell me how i can do this? or i have to define a separate rule for each n every URL?
thanx
regards
Faisal
Comment