Need help with rewrite

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
blade359
-


Joined: 16 Feb 2008
Posts: 2

PostPosted: Sat Feb 16, 2008 9:26 am    Post subject: Need help with rewrite Reply with quote

This is what i need converted

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

I know the first two lines but having problems with the last line.

Conditions:
RewriteCond %{REQUEST_FILENAME} !-f
REQUEST_FILENAME Is not a file
RewriteCond %{REQUEST_FILENAME} !-d
REQUEST_FILENAME Is a directory

RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

I know that L is stop matching
and QSA is Check Append Query String

What i need to know is out of this line
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
what is the Virtual Path Regular Expression and what's the Redirect to
drupal website is in c:\web
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sat Feb 16, 2008 10:01 am    Post subject: Re: Need help with rewrite Reply with quote

blade359 wrote:

RewriteCond %{REQUEST_FILENAME} !-d
REQUEST_FILENAME Is a directory
This is supposed to be...
REQUEST_FILENAME Is not a directory

blade359 wrote:

What i need to know is out of this line
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
what is the Virtual Path Regular Expression and what's the Redirect to
drupal website is in c:\web
Try this...

Virtual Path is...
^/(.*)$

Redirect to...
/index.php?q=$1

Notice where I added the forward slashes "/"
Back to top View user's profile Send private message Visit poster's website
blade359
-


Joined: 16 Feb 2008
Posts: 2

PostPosted: Sat Feb 16, 2008 11:16 am    Post subject: re Reply with quote

thanks it worked clean url works now.
Back to top View user's profile Send private message
loloyd
-


Joined: 03 Mar 2006
Posts: 435
Location: Philippines

PostPosted: Fri Feb 29, 2008 4:48 am    Post subject: Reply with quote

May I also direct you to [topic]14948[/topic] or [t]14948[/t] or http://www.aprelium.com/forum/viewtopic.php?t=14948. This could help you in setting up Abyss for Drupal's clean URLs feature.

You should also be setting up Drupal for multi-page indexes which that solution addresses.
_________________

http://home.loloyd.com/ is online if the logo graphic at left is showing.
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group