![]() |
|
| Domain Name Sales | Domain Software | Calculate UK Domain Drop Dates | Domain Registration | NameDrive | Domain Parking | Subscribe to our Domains For Sale newsletter |
| | ||||||
| Home | Register | Rules | Membership Upgrade | Domains For Sale | Domain Name Escrow | Mark Forums Read | Domain Classified | Chat Room |
| Scripts and Coding PHP, MySQL, scripts |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
![]() | Quick htaccess redirect question
RewriteCond %{HTTP_HOST} ^domain.co.uk$ [OR] RewriteCond %{HTTP_HOST} ^www.domain.co.uk$ RewriteRule ^/?$ "\/domain\.php" [R=301,L] What would I need to add to the above to forward domain.co.uk/anything to domain.php? Thanks for your time. - Rob |
| |
| | #3 (permalink) | |
![]() | Quote:
Code: RewriteCond %{HTTP_HOST} ^domain.co.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.co.uk$
RewriteRule ^ /domain.php [R=301,L] | |
| |
| | #4 (permalink) | |
![]() | Quote:
Thanks Dave, however that doesn't appear to work... --- The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. --- The clarify what I'm trying to do... At the moment I have quite a few domains parked with my hosting account and redirected to personalised landers... e.g. connexity.co.uk redirects to /connexity.php The problem is that if I tack /index.htm on to the end of connexity.co.uk, it redirects to my main domain index page, which is causing indexing problems in google. I was hoping there would be a way for me wildcard any /whateverfile traffic to the correct connexity.php page? Thanks, - Rob | |
| |
| | #5 (permalink) |
![]() |
use: RewriteRule ^(.*)$ domain.php?val=$1 [L] you can pick up the val variable to do some conditional processing if you need. if not just remove the ?val=$1 from above and it will still work
__________________ iBranded sites... Football Betting Tips | Cheap Flights | High Interest Bank Account | Instant Loans | London Olympics | Desi | Online MBA Courses | MBA |
| |
| | #6 (permalink) |
![]() |
Is there a reason you need connexity.php? Why couldn't you just use www.connexity.co.uk and map everything through index without any .php file would be much cleaner and google would prefer |
| |
| | #7 (permalink) | |
![]() | Quote:
- Rob | |
| |
| | #8 (permalink) | |
![]() | Quote:
It is however causing problems for the reasons outlined above. This is a recent problem by the way. Google handled things just fine until a week or so ago. - Rob Last edited by Rob_F; 12-11-2011 at 04:29:30 PM. | |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| Amazon Associates - Quick Question | mattharwood | Affiliate Marketing | 4 | 16-11-2010 11:36:55 PM |
| htaccess redirect question... | mat | Website Design | 5 | 01-07-2010 09:46:57 AM |
| Quick Question For A Solicitor | retired_member6 | General Board | 1 | 11-10-2009 01:32:45 PM |
| quick question on bad faith | Mendis | Domain Name Disputes | 4 | 22-03-2006 09:59:30 PM |