 |

08-20-2005, 01:16 PM
|
 |
SEO Junior
|
|
Join Date: Jun 2005
Location: The Netherlands
Posts: 24
|
|
Mod_Rewrite Expert Needed!!
Hi!
I am looking for some help on a problem with my Mod_Rewrite configurations.
Since I moved to a new server, all Mod_Rewrite configurations redirect the user to the target URL.
e.g.
Code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/*.*$ http://www.depsychiatrie.com/cms.php?file=%{REQUEST_FILENAME} [ L,R]
will redirect the user OR SE-Spider to http://www.depsychiatrie.com/cms.ph.../page_name.html
Please Help!
Best Regards,
Adult SEO
|

08-20-2005, 11:40 PM
|
 |
SEO GUY Moderator
|
|
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,238

|
|
Hi,
I really don't understand what you are trying to do. I mean if you move to a new server, isn't just a matter of updating the dns info, or are you moving pages from an old site to a new one?
Also, are you trying to move pages with dynamic variables? If so, how many?
It's straightforward enough though, have a look here:
http://forums.seochat.com/showthread.php?p=234516
Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
|

08-21-2005, 12:29 AM
|
 |
SEO Junior
|
|
Join Date: Jun 2005
Location: The Netherlands
Posts: 24
|
|
|

08-21-2005, 12:50 AM
|
 |
SEO GUY Moderator
|
|
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,238

|
|
|
Hi,
haha I looked at the url and I still don't understand what you want to do....
Can you write examples of the original url and intended target url? I'm a bit stoopid today.
BTW I got confused by "rewrite" and "redirect" too, but their not necessarily different things.....
Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
|

08-21-2005, 12:56 AM
|
 |
SEO Junior
|
|
Join Date: Jun 2005
Location: The Netherlands
Posts: 24
|
|
Hi!
I am looking for a solution to keep the url http://www.depsychiatrie.com/elektr...erapie_ect.html in the browser window (instead of /cms.php?file=/....) so the url is "rewritten" serverside and searchengines think the url actualy is the location of the sourced document (cms.php).
Let me know if you know a solution.
Best Regards,
Adult SEO
|

08-21-2005, 09:44 AM
|
 |
SEO GUY Moderator
|
|
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,238

|
|
|
Hi,
I guess you can use something similar to this:
RewriteEngine On
Options +Indexes
Options +FollowSymlinks
RewriteBase /
RewriteCond %{QUERY_STRING} ^file\=(.*)$
RewriteRule ^cms/.php$ /%1? [L]
# or just RewriteRule ^$ /%1? [L]
The problem is I've never tried this before, and I can't test it.
I'm not sure if you need the question mark - try it with at first, then without.
Don't forget to flush your browser cache before trying it, and if there are any probs, it would help if you could post the relevant part of the server log.
Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Last edited by Paz : 08-21-2005 at 09:58 AM.
|

08-22-2005, 01:29 AM
|
 |
SEO Junior
|
|
Join Date: Jun 2005
Location: The Netherlands
Posts: 24
|
|
Fixed!
I changed the Remote flag to Local and added the options from your configuration and it works again:
Code:
RewriteEngine On
Options +Indexes
Options +FollowSymlinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/*.*$ ./cms.php?file=%{REQUEST_FILENAME} [ L,L]
http://www.depsychiatrie.com/psychiater.html
Thanks a lot!
Best Regards,
Adult SEO
|
 |
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|