|
#1
|
|||
|
|||
|
I've set up modx cms on a hostgator site. I'm trying to use htaccess and mod_rewrite to enable friendly urls. However I am getting 404 errors. Here is my htaccess file.
#Options +FollowSymlinks RewriteEngine On RewriteBase / # The Friendly URLs part RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] Any help will be appreciated. Thanks |
|
#2
|
||||
|
||||
|
Just to confirm-- if you manually go to index.php?q=something, it works?
__________________
Follow me on Twitter! http://twitter.com/mrw |
|
#3
|
|||
|
|||
|
Yes it does.
|
|
#4
|
||||
|
||||
|
Is that the only thing in your htaccess?
__________________
Follow me on Twitter! http://twitter.com/mrw |
|
#5
|
|||
|
|||
|
yes. there are some other lines but they are all commented out.
|
|
#6
|
|||
|
|||
|
Silly question, but is your modx setup in the root of the site so you would access it as yourdomain.com/index.php or in a subfolder such as yourdomain.com/modx/index.php?
If it's the latter then you will need to set the "RewriteBase" to the name for the sub-folder, such as "RewriteBase /modx/" |
|
#7
|
|||
|
|||
|
it is in the root folder. i access it at mydomain.com/index.php
|
|
#8
|
|||
|
|||
|
Quote:
Anyone have any suggestions on how to fix this? |
|
#9
|
||||
|
||||
|
Double check that you set the nameservers correctly at the domain's registrar, to the ones provided in the HG welcome email. Does anything show up--i.e., a simple page not related to modx?
__________________
Hosting term analogies, revised and improved (?) |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mod_rewrite | blah | Pre-Sales Questions | 16 | 01-21-2011 09:23 PM |
| Mod_Rewrite | GOODY | Off-Topic | 12 | 05-12-2008 08:35 PM |
| MODx | gwyneth | Webhosting | 4 | 12-04-2007 09:35 PM |
| mod_rewrite | Clearlime | Shared Hosting Support | 0 | 03-02-2007 01:27 PM |
| mod_rewrite | Unregistered | Pre-Sales Questions | 4 | 02-22-2006 08:56 PM |
All times are GMT -6. The time now is 04:28 AM.









