Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 02-04-2005, 16:00   #1 (permalink)
Allis
Civilians

 
Default htaccess rewrite code question

This code should, supposedly, convert everything that follows after / in
the URL as GET data to the script.

---------------------------------
Options +FollowSymlinks
RewriteEngine on

RewriteBase /

RewriteRule ^(.+)$ /?$1
----------------------------------

Will it work or is there a better solution/code?

--
Allis-in-Wonderland


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 02-04-2005, 16:00   #2 (permalink)
GreyWyvern
Civilians

 
Default Re: htaccess rewrite code question

And lo, Allis didst speak in alt.www.webmaster:

> This code should, supposedly, convert everything that follows after / in
> the URL as GET data to the script.
>
> ---------------------------------
> Options +FollowSymlinks
> RewriteEngine on
>
> RewriteBase /
>
> RewriteRule ^(.+)$ /?$1
> ----------------------------------
>
> Will it work or is there a better solution/code?


You should exclude the condition where the URI is already GET data:

RewriteEngine on

RewriteBase /

RewriteCond %{REQUEST_URI} !^/\?.*$
RewriteRule ^(.+)$ /?$1

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- http://www.greywyvern.com - Orca Knowledgebase: Completely CSS styleable
Knowledgebase/FAQ system
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-04-2005, 16:00   #3 (permalink)
Allis
Civilians

 
Default Re: htaccess rewrite code question


"GreyWyvern" <spam@greywyvern.com> wrote in message
newspslosdicvsl6xfd@news.nas.net...
> And lo, Allis didst speak in alt.www.webmaster:
>
> > This code should, supposedly, convert everything that follows after /

in
> > the URL as GET data to the script.
> >
> > ---------------------------------
> > Options +FollowSymlinks
> > RewriteEngine on
> >
> > RewriteBase /
> >
> > RewriteRule ^(.+)$ /?$1
> > ----------------------------------
> >
> > Will it work or is there a better solution/code?

>
> You should exclude the condition where the URI is already GET data:
>
> RewriteEngine on
>
> RewriteBase /
>
> RewriteCond %{REQUEST_URI} !^/\?.*$
> RewriteRule ^(.+)$ /?$1
>
> Grey
>
> --
> The technical axiom that nothing is impossible sinisterly implies the
> pitfall corollory that nothing is ridiculous.
> - http://www.greywyvern.com - Orca Knowledgebase: Completely CSS styleable
> Knowledgebase/FAQ system



Mucho Thanko Youo

Will give it a shot.


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess question Rex Karz Web Design 10 10-01-2005 18:00
[News Feed] Bush to Sign Rewrite of Bankruptcy Code (AP) Forum Mouse News Articles 0 04-20-2005 04:00
.htaccess - How can I pass our search keywords (e.g. from GoogleAds) past .htaccess... into our cookies!? Shiperton Henethe Web Design 1 11-24-2004 19:00
Re: (Solution) Using Frontpage with Apache's .htaccess Mod Rewrite prevents FrontPage from being able to Open site... Robb Topolski Web Design 0 11-11-2004 22:55
htaccess question Grytpype-Thynne Web Design 5 07-30-2004 10:00


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 10:40.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 0.77172 seconds with 19 queries