-
☆ A M B ☆
- 24,524 Posts
Wouldn’t it be easier just to activate friendly url’s in the configuration, and setting the suffix to .html, and naming the documents in the same way as on the static pages? That way, weblinks are not needed.
René
Interesting. . . would this work? I’m going to try it anyway - I’ve heard some people have difficulty setting up friendly urls, so I’m sure I’ll be no exception.
-
☆ A M B ☆
- 24,524 Posts
If you’re on a Linux server, you should have no problems at all. I have never had a problem, and have probably installed at least 50 sites. On some servers I need to uncomment the #Options +FollowSymlinks line. Otherwise, it just works.
Hmm, I’m having difficulties with this one.
I’m getting Server error! Error 500
My .htaccess file looks like this without the comments:
RewriteEngine On
RewriteBase /modx
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
I’m running XAMP on a windows machine. Any quickfire solutions for pinpointing the problem?
Friendly URL’s work fine on my XAMPP / WinXP installation.
Are you sure this one is correct: RewriteBase /modx
I install modx in the document root, so in my htaccess rewrite base is: RewriteBase /
Do you work with Virtual Hosts on your local installation, or with what URL do you access the page?
René
Is mod_rewrite enabled? Check your httpd.conf for the following line:
LoadModule rewrite_module modules/mod_rewrite.so
In necessary, uncomment it. After changes in httpd.conf, you need to restart Apache.
René