View previous topic :: View next topic |
Author |
Message |
blade359 -
Joined: 16 Feb 2008 Posts: 2
|
Posted: Sat Feb 16, 2008 9:26 am Post subject: Need help with rewrite |
|
|
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 |
|
|
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Sat Feb 16, 2008 10:01 am Post subject: Re: Need help with rewrite |
|
|
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 |
|
|
blade359 -
Joined: 16 Feb 2008 Posts: 2
|
Posted: Sat Feb 16, 2008 11:16 am Post subject: re |
|
|
thanks it worked clean url works now. |
|
Back to top |
|
|
loloyd -
Joined: 03 Mar 2006 Posts: 435 Location: Philippines
|
Posted: Fri Feb 29, 2008 4:48 am Post subject: |
|
|
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 |
|
|
|