SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 08-20-2005, 01:16 PM
AdultSEO's Avatar
AdultSEO AdultSEO is offline
SEO Junior
 
Join Date: Jun 2005
Location: The Netherlands
Posts: 24 AdultSEO is on a distinguished road
Arrow 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
Reply With Quote
  #2  
Old 08-20-2005, 11:40 PM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,238 Paz has a spectacular aura aboutPaz has a spectacular aura about
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.
Reply With Quote
  #3  
Old 08-21-2005, 12:29 AM
AdultSEO's Avatar
AdultSEO AdultSEO is offline
SEO Junior
 
Join Date: Jun 2005
Location: The Netherlands
Posts: 24 AdultSEO is on a distinguished road
Arrow

Hi!

Thanks for the response!

What I meant was that rewritten URLs are now forwarded to the target instead of being "rewritten".

Please have a look at http://www.depsychiatrie.com/elektr...erapie_ect.html to see what I mean.

Best Regards,
Adult SEO
Reply With Quote
  #4  
Old 08-21-2005, 12:50 AM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,238 Paz has a spectacular aura aboutPaz has a spectacular aura about
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.
Reply With Quote
  #5  
Old 08-21-2005, 12:56 AM
AdultSEO's Avatar
AdultSEO AdultSEO is offline
SEO Junior
 
Join Date: Jun 2005
Location: The Netherlands
Posts: 24 AdultSEO is on a distinguished road
Arrow

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
Reply With Quote
  #6  
Old 08-21-2005, 09:44 AM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,238 Paz has a spectacular aura aboutPaz has a spectacular aura about
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.
Reply With Quote
  #7  
Old 08-22-2005, 01:29 AM
AdultSEO's Avatar
AdultSEO AdultSEO is offline
SEO Junior
 
Join Date: Jun 2005
Location: The Netherlands
Posts: 24 AdultSEO is on a distinguished road
Arrow

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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 01:58 AM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.