Welcome to the myhosting.com Forums.
-
Mod Rewrite / htaccess Troubles
greetings!
i'm attempting (again) to establish clean urls on my pages.
i'm working with a software/template called indexhibit (http://www.indexhibit.org)
to develop/design my site. their advice is as follows to establish clean urls:
What is required for Clean URL's?
Your server needs to have a server (Apache) technology called "mod_rewrite" properly setup and enabled for your account. If you have any question whether you have this or not you should ask your webshot. Or, you might simply try to the following instructions to see if clean url's will work on your site.
How to Enable Clean URL's
- rename htaccess to .htaccess (with the dot)
- in the /ndxz-studio/defaults.php file change:
define('MODREWRITE', false);
To:
define('MODREWRITE', true);
when i change my htaccess file to .htaccess and changed the defaults.php file to read
'true' instead of 'false', it gives me clean urls but messes up the style of my pages.
(the homepage however doesn't seem to be affected by this). so i'm not sure how
to remedy this.
i tried changing the htaccess file, adding in 'Options +FollowSymlinks' like those who use
GoDaddy have to do. but this makes my content disappear
or inaccessible.
can anyone give me a little help or advice as to what to
try next?
thanks very much, as always!!
joel
joelwanek.com
-
Re: Mod Rewrite / htaccess Troubles
does anyone moderate these forums?
-
Re: Mod Rewrite / htaccess Troubles
Hi Joel,
Sorry for the delay in replying. I see your stylesheet is loading properly now, but your URLs are like:
yoursite.com/index.php?/dir/subdir etc
What change did you make? Perhaps you can post the contents of your .htaccess file?
-
hi tim... thanks very much for the reply. obviously its been awhile :-) hope you still can be of assistance. i continually give up on this matter and then retry it several months later to no avail. so, any help would be much appreciated.
here's my .htaccess file:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteBase /
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.+) index.php
i think i need to add a line or something to apply these changes to all of my pages (my joelwanek.com/index.php page looks just fine - no style changes appear). so, any thoughts?
thanks!
joel
Similar Threads
-
By oldeesee in forum Beginners
Replies: 2
Last Post: 2011-03-03, 10:19 AM
-
By lchiang in forum Beginners
Replies: 3
Last Post: 2009-04-13, 12:24 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Version 4.1.7
Copyright ©2000 - 2013
All times are GMT -4. The time now is 05:39 PM.