stewart1
06-16-2010, 03:41 PM
Hi,
I installed the software to the folder directory. Now I'm trying to point all my pages to /directory/ instead of directory/index.php. How do I change link on the menu bar to reflect this?(Woodenly Template) without screwing everything up? Newest software version.
The other issue is, I'm trying to get a rewrite mod to work and point index.php to .com/directory/. My server says this works. Even if it does it's not on a 301 permanently moved. This is what is suppose to work according to them. I love this software, just a little flustrated.
<IfModule mod_rewrite.c>
# enable mod_rewrite
RewriteEngine on
# SECTION 1
# correct urls for yahoo bot
RewriteCond %{REQUEST_URI} !\..+$
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
# mod_rewrite rules for plugins
RewriteRule ^mod/(.*)/$ controller.php?plugin=$1 [QSA,L]
RewriteRule ^mod/(.*)/(.*)/$ controller.php?plugin=$1&file=$2 [QSA,L]
RewriteRule ^mod/(.*)/(.*).html$ controller.php?plugin=$1&file=$2 [QSA,L]
# mod_rewrite rules for view account page
RewriteRule ^accounts/$ accounts.php [QSA,L]
RewriteRule ^accounts/(.*)/$ accounts.php?alpha=$1 [QSA,L]
RewriteRule ^accounts/(.*).html$ view-account.php?account=$1 [QSA,L]
# mod_rewrite rules for tell friend pages
RewriteRule ^tell-friend.html$ controller.php?plugin=tell_friend [QSA,L]
RewriteRule ^sitemap.xml$ tmp/sitemap/google/sitemap.xml [QSA,L]
RewriteRule ^sitemap([0-9]+).xml$ tmp/sitemap/google/sitemap$1.xml [QSA,L]
RewriteRule ^sitemap_index.xml$ tmp/sitemap/google/sitemap_index.xml [QSA,L]
RewriteRule ^urllist.txt$ tmp/sitemap/urllist.txt [QSA,L]
# SECTION 2
# mod_rewrite rules for ROOT category
RewriteRule ^index([0-9]+).html$ index.php?category=0&page=$1 [QSA,L]
# mod_rewrite rule for pageranks listing page
RewriteRule ^pagerank([0-9]+)-listings.html$ controller.php?plugin=pageranks&pr=$1 [QSA,L]
RewriteRule ^pagerank([0-9]+)-listings([0-9]+).html$ controller.php?plugin=pageranks&pr=$1&page=$2 [QSA,L]
# SECTION 3
# mod_rewrite rules for categories pages with HTML path option disable
RewriteRule ^(.*)/$ index.php?category=$1 [QSA,L]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?category=$1&page=$2 [QSA,L]
# SECTION 4
# mod_rewrite rule for suggest listing page
RewriteRule report-listing.php$ report-listing.php [QSA,L]
# SECTION 5
RewriteRule ^([a-z]+)-listings.html$ listings.php?view=$1 [QSA,L]
RewriteRule ^([a-z]+)-listings([0-9]+).html$ listings.php?view=$1&page=$2 [QSA,L]
# SECTION 6
# mod_rewrite rules for view listing page
RewriteRule ^([^/]+)-l([0-9]+).html$ view-listing.php?cat=&title=$1&id=$2 [QSA,L]
RewriteRule ^(.*)/([^/]+)-l([0-9]+).html$ view-listing.php?cat=$1&title=$2&id=$3 [QSA,L]
# SECTION 7
# mod_rewrite rules for additional pages
RewriteRule ^p/(.*).html$ page.php?name=$1 [QSA,L]
RewriteRule ^p(.*).html$ page.php?name=$1 [QSA,L]
# SECTION 8
# mod_rewrite rules for error pages
RewriteRule ^([0-9]+).htm$ error.php?error=$1 [QSA,L]
# SECTION 9
# mod_rewrite rules for suggest category page
RewriteRule ^suggest-category-([0-9]+).html$ suggest-category.php?id=$1 [QSA,L]
# SECTION 10
RewriteRule ^LICENSE.htm$ LICENSE.htm [QSA,L]
# SECTION 11
# mod_rewrite rules for categories pages
RewriteRule ^(.*)_([0-9]+).html$ index.php?category=$1&page=$2 [QSA,L]
RewriteRule ^(.*).html?(.*)$ index.php?category=$1&$2 [QSA,L]
RewriteRule ^(.*).html$ index.php?category=$1 [QSA,L]
</IfModule>
# SECTION 12
ErrorDocument 500 500.htm
ErrorDocument 404 404.htm
ErrorDocument 403 403.htm
ErrorDocument 401 401.htm
I think you will see it's not working.
Thanks
Randy
I installed the software to the folder directory. Now I'm trying to point all my pages to /directory/ instead of directory/index.php. How do I change link on the menu bar to reflect this?(Woodenly Template) without screwing everything up? Newest software version.
The other issue is, I'm trying to get a rewrite mod to work and point index.php to .com/directory/. My server says this works. Even if it does it's not on a 301 permanently moved. This is what is suppose to work according to them. I love this software, just a little flustrated.
<IfModule mod_rewrite.c>
# enable mod_rewrite
RewriteEngine on
# SECTION 1
# correct urls for yahoo bot
RewriteCond %{REQUEST_URI} !\..+$
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
# mod_rewrite rules for plugins
RewriteRule ^mod/(.*)/$ controller.php?plugin=$1 [QSA,L]
RewriteRule ^mod/(.*)/(.*)/$ controller.php?plugin=$1&file=$2 [QSA,L]
RewriteRule ^mod/(.*)/(.*).html$ controller.php?plugin=$1&file=$2 [QSA,L]
# mod_rewrite rules for view account page
RewriteRule ^accounts/$ accounts.php [QSA,L]
RewriteRule ^accounts/(.*)/$ accounts.php?alpha=$1 [QSA,L]
RewriteRule ^accounts/(.*).html$ view-account.php?account=$1 [QSA,L]
# mod_rewrite rules for tell friend pages
RewriteRule ^tell-friend.html$ controller.php?plugin=tell_friend [QSA,L]
RewriteRule ^sitemap.xml$ tmp/sitemap/google/sitemap.xml [QSA,L]
RewriteRule ^sitemap([0-9]+).xml$ tmp/sitemap/google/sitemap$1.xml [QSA,L]
RewriteRule ^sitemap_index.xml$ tmp/sitemap/google/sitemap_index.xml [QSA,L]
RewriteRule ^urllist.txt$ tmp/sitemap/urllist.txt [QSA,L]
# SECTION 2
# mod_rewrite rules for ROOT category
RewriteRule ^index([0-9]+).html$ index.php?category=0&page=$1 [QSA,L]
# mod_rewrite rule for pageranks listing page
RewriteRule ^pagerank([0-9]+)-listings.html$ controller.php?plugin=pageranks&pr=$1 [QSA,L]
RewriteRule ^pagerank([0-9]+)-listings([0-9]+).html$ controller.php?plugin=pageranks&pr=$1&page=$2 [QSA,L]
# SECTION 3
# mod_rewrite rules for categories pages with HTML path option disable
RewriteRule ^(.*)/$ index.php?category=$1 [QSA,L]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?category=$1&page=$2 [QSA,L]
# SECTION 4
# mod_rewrite rule for suggest listing page
RewriteRule report-listing.php$ report-listing.php [QSA,L]
# SECTION 5
RewriteRule ^([a-z]+)-listings.html$ listings.php?view=$1 [QSA,L]
RewriteRule ^([a-z]+)-listings([0-9]+).html$ listings.php?view=$1&page=$2 [QSA,L]
# SECTION 6
# mod_rewrite rules for view listing page
RewriteRule ^([^/]+)-l([0-9]+).html$ view-listing.php?cat=&title=$1&id=$2 [QSA,L]
RewriteRule ^(.*)/([^/]+)-l([0-9]+).html$ view-listing.php?cat=$1&title=$2&id=$3 [QSA,L]
# SECTION 7
# mod_rewrite rules for additional pages
RewriteRule ^p/(.*).html$ page.php?name=$1 [QSA,L]
RewriteRule ^p(.*).html$ page.php?name=$1 [QSA,L]
# SECTION 8
# mod_rewrite rules for error pages
RewriteRule ^([0-9]+).htm$ error.php?error=$1 [QSA,L]
# SECTION 9
# mod_rewrite rules for suggest category page
RewriteRule ^suggest-category-([0-9]+).html$ suggest-category.php?id=$1 [QSA,L]
# SECTION 10
RewriteRule ^LICENSE.htm$ LICENSE.htm [QSA,L]
# SECTION 11
# mod_rewrite rules for categories pages
RewriteRule ^(.*)_([0-9]+).html$ index.php?category=$1&page=$2 [QSA,L]
RewriteRule ^(.*).html?(.*)$ index.php?category=$1&$2 [QSA,L]
RewriteRule ^(.*).html$ index.php?category=$1 [QSA,L]
</IfModule>
# SECTION 12
ErrorDocument 500 500.htm
ErrorDocument 404 404.htm
ErrorDocument 403 403.htm
ErrorDocument 401 401.htm
I think you will see it's not working.
Thanks
Randy