![]() |
|
|||||||
| Register | FAQ | Members List | Downloads | Calendar | Today's Posts | Search | Webmaster Resources | Webmaster Blogs |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
how do i 301 this rule
RewriteRule contact.html contact.php i have the above rewriterule in .htaccess and now the below url can be accessed http://www.djpassions.com/contact.html but how do i get contact.php to redirect to contact.html? so if someone goes to http://www.djpassions.com/contact.php will be redirected to http://www.djpassions.com/contact.html ive checked loads of docs on the net about this but none of the suggestions work ![]() |
|
||||
|
Hi djpassion,
it's not rewrite rule but it redirect the page using 301. Redirect 301 /contact.php http://www.djpassions.com/contact.html Last edited by ohsuria; 04-30-2008 at 02:06 PM. |
|
||||
|
if you use cpanel to administer your website you can create a redirect from within cpanel quickly and easily!
If you are unsure let me take a look. |
|
||||
|
Im using e107 cms with the furl plugin so think thats why the page rewrite isnt working
When i try Redirect 301 /contact.php http://www.djpassions.com/contact.html I just get page /contact.html not found so think its something to do with static/dynamic I have a redirect section in cpanel too but that doesnt work either Last edited by djpassion; 04-30-2008 at 03:32 PM. |
|
||||
|
Try:
Code:
RewriteRule ^contact\.html$ contact.php [L] Code:
RewriteRule ^(.*)\.html$ $1.php [L] |
|
||||
|
Quote:
in .htaccess i have this Quote:
Last edited by djpassion; 04-30-2008 at 03:53 PM. |
![]() |
| Bookmarks |
| Webmaster Resources |
|
• UK WW SEO Tools • Find UK Hosts |
| The Forum Rules |
|
• Forum Rules - MUST READ |
| Site Of the Month |
![]() Nominate site of the month |
|
|
| UK Webmaster World Forums - Internet marketing, web development, domain names, SEO contest and discussuons. |
| Subscribe to our feeds |