Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

mod_rewrite

Home: Products: General Support Questions:

 

 


jesus
Novice

Karma: -0 / +0

Apr 25, 2004, 11:11 PM

Post #1 of 4 (1535 views)
Shortcut

Send jesus a wink
mod_rewrite Can't Post

Hi andy and pugdog... i don't know if i'm in the right forum to ask my question, regarding the mod_rewrite rules.

Reading on the Gossamer Threads forum, I'm tryoing to establish my rewrite rules to use linkssql dinamicly. I take some rules posted by andy and i'm trying to make it work my own rules.

RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^p/(.*) /cgi-bin/choulinks/page.cgi?g=$1 [L]
RewriteRule ^info/(.*) /cgi-bin/choulinks/page.cgi?p=$1 [L]
RewriteRule ^(.*).html /cgi-bin/choulinks/page.cgi?g=$1.html [L]
RewriteRule ^$ /cgi-bin/choulinks/page.cgi [L]

I'm still doing tests with my links installation, so i'm only seeing my pages from the admin menu, using the dynamic link there. However my pages still looks this this:

/page.cgi?g=Arts___Entretainment%2Findex.html&d=1

As you may notice, i'm still able to see the ? sign on my link. I've installed the mod_Rewrite module on my server.

My .htaccess file its located on my html directory and my site structure looks like this:

cgi-bin
|-choulinks
html
|-images
|-new
|-cool

Where exactly do i need to upload the .htaccess file? (cgi-bin or html directory)?

As always, any help or advice on this will be really appreciate it :)

Jesus


Andy
Enthusiast

Karma: -1 / +7


Apr 26, 2004, 1:37 AM

Post #2 of 4 (1534 views)
Shortcut

Send Andy a wink
Re: [jesus] mod_rewrite [In reply to] Can't Post

Are you sure you understand what this is meant to be doing? mod_rewrite just means that you can use dynamic pages (page.cgi), and give them a static view (like you had run the Build All). Have you tried to run this by deleting a page, and then calling it, to see if its accessing page.cgi correctly?

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com



ergo247
Novice

Karma: -0 / +0

Dec 8, 2004, 1:14 PM

Post #3 of 4 (1285 views)
Shortcut

Send ergo247 a wink
Re: [jesus] mod_rewrite [In reply to] Can't Post

Having hassle doing something similar, I want to do pretty much what that example should achieve but if I upload htaccess to the public root with it I get a 404 error for any of the subcategories, I gather its because the ;d= is being passed on the dynamic url?

I plan to make the dynamic appear static for directory pages and eventuually to rewrite the jump.cgi pages to appear static links but thats another step for later.

Any pointers would be appreciated.


ergo247
Novice

Karma: -0 / +0

Dec 8, 2004, 2:52 PM

Post #4 of 4 (1284 views)
Shortcut

Send ergo247 a wink
Re: [ergo247] mod_rewrite [In reply to] Can't Post

Typical, as usual no sooner than I post do I managed to figure it out :)

 
 
 


Search for (options) Powered by Gossamer Forum v.1.2.4