I'm have a ton of problems with pretty urls...
my index page is fine... it seems.
All the other pages are jacked up. I got the css relinked, but nothing I do will relink any JS files.
If I'm on "domain.com/contact" and click on "about" in the menu... I get "domain.com/contact/about.php" instead of "domain.com/about"
What is going on with this? I did uncomment the 404 error line.
.httaccess file below:
Options +FollowSymlinks -MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it RewriteBase /subdomain1/subdomain2
RewriteBase /
#If you wish to use a custom 404 page, place a file named 404.php in your website's root and uncomment the line below.
#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it ErrorDocument 404 /subdomain1/subdomain2/404.php
ErrorDocument 404 /404.php
#If your site begins with 'www', uncomment the following two lines
#RewriteCond %{HTTP_HOST} !^www\.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
#DO NOT EDIT BELOW THIS
RewriteRule ^index.php$ "" [R=301,L,QSA]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule . - [L]
#user_created_styles.php
RewriteRule ^user_created_styles$ "$0/" [R=301,L,QSA]
RewriteRule ^user_created_styles/$ user_created_styles.php [L,QSA]
RewriteRule ^user_created_styles/.*?([^\.\/]*)\.html$ user_created_styles.php?pname=$1 [L,QSA]
RewriteRule ^user_created_styles/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ user_created_styles.php?d=$1$2$3 [L,QSA]
RewriteRule ^user_created_styles/[^\.]*?([^/\.]*)/$ user_created_styles.php?fname=$1 [L,QSA]
RewriteRule ^user_created_styles/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#rss.php
RewriteRule ^rss$ "$0/" [R=301,L,QSA]
RewriteRule ^rss/$ rss.php [L,QSA]
RewriteRule ^rss/.*?([^\.\/]*)\.html$ rss.php?pname=$1 [L,QSA]
RewriteRule ^rss/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ rss.php?d=$1$2$3 [L,QSA]
RewriteRule ^rss/[^\.]*?([^/\.]*)/$ rss.php?fname=$1 [L,QSA]
RewriteRule ^rss/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#project_gallery.php
RewriteRule ^project_gallery$ "$0/" [R=301,L,QSA]
RewriteRule ^project_gallery/$ project_gallery.php [L,QSA]
RewriteRule ^project_gallery/.*?([^\.\/]*)\.html$ project_gallery.php?pname=$1 [L,QSA]
RewriteRule ^project_gallery/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ project_gallery.php?d=$1$2$3 [L,QSA]
RewriteRule ^project_gallery/[^\.]*?([^/\.]*)/$ project_gallery.php?fname=$1 [L,QSA]
RewriteRule ^project_gallery/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#global.php
RewriteRule ^global$ "$0/" [R=301,L,QSA]
RewriteRule ^global/$ global.php [L,QSA]
RewriteRule ^global/.*?([^\.\/]*)\.html$ global.php?pname=$1 [L,QSA]
RewriteRule ^global/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ global.php?d=$1$2$3 [L,QSA]
RewriteRule ^global/[^\.]*?([^/\.]*)/$ global.php?fname=$1 [L,QSA]
RewriteRule ^global/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#gallery.php
RewriteRule ^gallery$ "$0/" [R=301,L,QSA]
RewriteRule ^gallery/$ gallery.php [L,QSA]
RewriteRule ^gallery/.*?([^\.\/]*)\.html$ gallery.php?pname=$1 [L,QSA]
RewriteRule ^gallery/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ gallery.php?d=$1$2$3 [L,QSA]
RewriteRule ^gallery/[^\.]*?([^/\.]*)/$ gallery.php?fname=$1 [L,QSA]
RewriteRule ^gallery/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#contact.php
RewriteRule ^contact$ "$0/" [R=301,L,QSA]
RewriteRule ^contact/$ contact.php [L,QSA]
RewriteRule ^contact/.*?([^\.\/]*)\.html$ contact.php?pname=$1 [L,QSA]
RewriteRule ^contact/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ contact.php?d=$1$2$3 [L,QSA]
RewriteRule ^contact/[^\.]*?([^/\.]*)/$ contact.php?fname=$1 [L,QSA]
RewriteRule ^contact/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#blog.php
RewriteRule ^blog$ "$0/" [R=301,L,QSA]
RewriteRule ^blog/$ blog.php [L,QSA]
RewriteRule ^blog/.*?([^\.\/]*)\.html$ blog.php?pname=$1 [L,QSA]
RewriteRule ^blog/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ blog.php?d=$1$2$3 [L,QSA]
RewriteRule ^blog/[^\.]*?([^/\.]*)/$ blog.php?fname=$1 [L,QSA]
RewriteRule ^blog/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#about.php
RewriteRule ^about$ "$0/" [R=301,L,QSA]
RewriteRule ^about/$ about.php [L,QSA]
RewriteRule ^about/.*?([^\.\/]*)\.html$ about.php?pname=$1 [L,QSA]
RewriteRule ^about/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ about.php?d=$1$2$3 [L,QSA]
RewriteRule ^about/[^\.]*?([^/\.]*)/$ about.php?fname=$1 [L,QSA]
RewriteRule ^about/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#404.php
RewriteRule ^404$ "$0/" [R=301,L,QSA]
RewriteRule ^404/$ 404.php [L,QSA]
RewriteRule ^404/.*?([^\.\/]*)\.html$ 404.php?pname=$1 [L,QSA]
RewriteRule ^404/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ 404.php?d=$1$2$3 [L,QSA]
RewriteRule ^404/[^\.]*?([^/\.]*)/$ 404.php?fname=$1 [L,QSA]
RewriteRule ^404/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#index.php
RewriteRule ^.*?([^\.\/]*)\.html$ ?pname=$1 [L,QSA]
RewriteRule ^([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ ?d=$1$2$3 [L,QSA]
RewriteRule ^[^\.]*?([^/\.]*)/$ ?fname=$1 [L,QSA]
RewriteRule ^\w[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
</IfModule>
my index page is fine... it seems.
All the other pages are jacked up. I got the css relinked, but nothing I do will relink any JS files.
If I'm on "domain.com/contact" and click on "about" in the menu... I get "domain.com/contact/about.php" instead of "domain.com/about"
What is going on with this? I did uncomment the 404 error line.
.httaccess file below:
Options +FollowSymlinks -MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it RewriteBase /subdomain1/subdomain2
RewriteBase /
#If you wish to use a custom 404 page, place a file named 404.php in your website's root and uncomment the line below.
#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it ErrorDocument 404 /subdomain1/subdomain2/404.php
ErrorDocument 404 /404.php
#If your site begins with 'www', uncomment the following two lines
#RewriteCond %{HTTP_HOST} !^www\.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
#DO NOT EDIT BELOW THIS
RewriteRule ^index.php$ "" [R=301,L,QSA]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule . - [L]
#user_created_styles.php
RewriteRule ^user_created_styles$ "$0/" [R=301,L,QSA]
RewriteRule ^user_created_styles/$ user_created_styles.php [L,QSA]
RewriteRule ^user_created_styles/.*?([^\.\/]*)\.html$ user_created_styles.php?pname=$1 [L,QSA]
RewriteRule ^user_created_styles/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ user_created_styles.php?d=$1$2$3 [L,QSA]
RewriteRule ^user_created_styles/[^\.]*?([^/\.]*)/$ user_created_styles.php?fname=$1 [L,QSA]
RewriteRule ^user_created_styles/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#rss.php
RewriteRule ^rss$ "$0/" [R=301,L,QSA]
RewriteRule ^rss/$ rss.php [L,QSA]
RewriteRule ^rss/.*?([^\.\/]*)\.html$ rss.php?pname=$1 [L,QSA]
RewriteRule ^rss/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ rss.php?d=$1$2$3 [L,QSA]
RewriteRule ^rss/[^\.]*?([^/\.]*)/$ rss.php?fname=$1 [L,QSA]
RewriteRule ^rss/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#project_gallery.php
RewriteRule ^project_gallery$ "$0/" [R=301,L,QSA]
RewriteRule ^project_gallery/$ project_gallery.php [L,QSA]
RewriteRule ^project_gallery/.*?([^\.\/]*)\.html$ project_gallery.php?pname=$1 [L,QSA]
RewriteRule ^project_gallery/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ project_gallery.php?d=$1$2$3 [L,QSA]
RewriteRule ^project_gallery/[^\.]*?([^/\.]*)/$ project_gallery.php?fname=$1 [L,QSA]
RewriteRule ^project_gallery/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#global.php
RewriteRule ^global$ "$0/" [R=301,L,QSA]
RewriteRule ^global/$ global.php [L,QSA]
RewriteRule ^global/.*?([^\.\/]*)\.html$ global.php?pname=$1 [L,QSA]
RewriteRule ^global/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ global.php?d=$1$2$3 [L,QSA]
RewriteRule ^global/[^\.]*?([^/\.]*)/$ global.php?fname=$1 [L,QSA]
RewriteRule ^global/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#gallery.php
RewriteRule ^gallery$ "$0/" [R=301,L,QSA]
RewriteRule ^gallery/$ gallery.php [L,QSA]
RewriteRule ^gallery/.*?([^\.\/]*)\.html$ gallery.php?pname=$1 [L,QSA]
RewriteRule ^gallery/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ gallery.php?d=$1$2$3 [L,QSA]
RewriteRule ^gallery/[^\.]*?([^/\.]*)/$ gallery.php?fname=$1 [L,QSA]
RewriteRule ^gallery/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#contact.php
RewriteRule ^contact$ "$0/" [R=301,L,QSA]
RewriteRule ^contact/$ contact.php [L,QSA]
RewriteRule ^contact/.*?([^\.\/]*)\.html$ contact.php?pname=$1 [L,QSA]
RewriteRule ^contact/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ contact.php?d=$1$2$3 [L,QSA]
RewriteRule ^contact/[^\.]*?([^/\.]*)/$ contact.php?fname=$1 [L,QSA]
RewriteRule ^contact/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#blog.php
RewriteRule ^blog$ "$0/" [R=301,L,QSA]
RewriteRule ^blog/$ blog.php [L,QSA]
RewriteRule ^blog/.*?([^\.\/]*)\.html$ blog.php?pname=$1 [L,QSA]
RewriteRule ^blog/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ blog.php?d=$1$2$3 [L,QSA]
RewriteRule ^blog/[^\.]*?([^/\.]*)/$ blog.php?fname=$1 [L,QSA]
RewriteRule ^blog/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#about.php
RewriteRule ^about$ "$0/" [R=301,L,QSA]
RewriteRule ^about/$ about.php [L,QSA]
RewriteRule ^about/.*?([^\.\/]*)\.html$ about.php?pname=$1 [L,QSA]
RewriteRule ^about/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ about.php?d=$1$2$3 [L,QSA]
RewriteRule ^about/[^\.]*?([^/\.]*)/$ about.php?fname=$1 [L,QSA]
RewriteRule ^about/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#404.php
RewriteRule ^404$ "$0/" [R=301,L,QSA]
RewriteRule ^404/$ 404.php [L,QSA]
RewriteRule ^404/.*?([^\.\/]*)\.html$ 404.php?pname=$1 [L,QSA]
RewriteRule ^404/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ 404.php?d=$1$2$3 [L,QSA]
RewriteRule ^404/[^\.]*?([^/\.]*)/$ 404.php?fname=$1 [L,QSA]
RewriteRule ^404/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#index.php
RewriteRule ^.*?([^\.\/]*)\.html$ ?pname=$1 [L,QSA]
RewriteRule ^([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ ?d=$1$2$3 [L,QSA]
RewriteRule ^[^\.]*?([^/\.]*)/$ ?fname=$1 [L,QSA]
RewriteRule ^\w[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
</IfModule>