Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

URL rewritings

3 like 0 dislike
Hey, i am having problems in .htacess url rewritings.

I have .htaceess file as mentioned below:

Options +FollowSymlinks
RewriteEngine on
RewriteBase /
php_flag register_globals On
RewriteRule ^Hotel/(.*)$ HotelProfile.php?urlname=$1 [L]
ErrorDocument 404 /error.php
AddType application/x-httpd-php .html .php .htm

But it does not rewite url as i intend to in .html
I have tried various combinations such as
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)\.htm$ $1.php [nc]
RewriteRule ^Hotel-([0-9]+)\.html$ hotel.php?id=$1

but none of them are giving results that requires....
I want to rewrite this url...


Can somebody suggest what do i need to do please.

Thank you
asked 1 year ago by Edward (33,730 points)

1 Answer

1 like 0 dislike
 
Best answer
I think there are  RewriteEngine Rules generator in Google there are some free ones online
answered 1 year ago by Jarrod Larkin (21,530 points)

Related questions

2 like 0 dislike
0 answers
10 like 0 dislike
0 answers
2 like 0 dislike
1 answer
asked 1 year ago by eagle09 (95,490 points)
6 like 0 dislike
1 answer
11 like 0 dislike
0 answers