![]() | |
| ||||
| I'm trying to setup a redirect so that any request to any page which ends in ?page_id gets redirected to the homepage of the site. The following rule is placed within the htaccess file but it throws up an internal server error: Code: RewriteRule ^?page_id=(.*)$ /http://site.something.com [L,R=301] |
| ||||
| Code: RewriteRule ^?page_id=(.*)$ /http://site.something.com [L,R=301]
__________________ my sites : irish poker / irish jobs / seo faq / advertise jobs free / green card / skiing |
| ||||
| try this Code: RewriteRule ^(.*)?\?page_id=(.*)?$ http://site.something.com [L,R=301] #or this RewriteRule ^(.*)?([\?])page_id=(.*)$ http://site.something.com [L,R=301]
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Directory Submission Directory Submission :. News & Press Release Ireland GiveItSocks.com :. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories :. I Have 2 Find It Directory SEF Directory |
| ||||
| or try this option Code: RewriteCond %{QUERY_STRING} ^page_id=(.*)
RewriteRule /* http://site.something.com [R=301,L]
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Directory Submission Directory Submission :. News & Press Release Ireland GiveItSocks.com :. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories :. I Have 2 Find It Directory SEF Directory |
| Thread Tools | |
| Display Modes | |
|
|
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 301 redirect | ziycon | Coding Help | 8 | 03-04-2008 05:38 PM |
| New Domain name with 301 redirect | Wenlock | Search Engine Optimisation | 6 | 18-03-2008 12:34 PM |
| 301 redirect issue | lostie | Webmaster Discussion | 2 | 17-07-2007 12:33 PM |
| 301 redirect question | JamesA | Coding Help | 11 | 06-02-2007 08:59 PM |
| Shorter URLs with 301 redirect | blacknight | Webmaster Discussion | 1 | 31-08-2006 09:08 PM |