#1 2008-01-22 18:04:51

RonPaul-WI.Net
New member
Ranking
Registered: 2008-01-22
Posts: 2
Reputation :  [+ 0/ -0 ]
Expertise

URL Rewriting On = 404 errors

Okay I have read most of the postings on this subjuct.  My goal is to get a working a wwwthread forum with static urls at www.RonPaul-WI.net.

I have .htaccess file install which looks like this:

RewriteEngine on
RewriteRule ^f([0-9]+)(.*).html$ view_forum.php?id=$1 [L]
RewriteRule ^t([0-9]+)(.*).html$ view_topic.php?id=$1 [L]
RewriteRule ^p([0-9]+)(.*).html$ view_topic.php?pid=$1 [L]
RewriteRule ^l([0-9]+)(.*).html$ view_poll.php?pid=$1 [L]
####### extra
RewriteRule ^(.*)spell.html$ $1spell.html [L]
RewriteRule ^(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*).html$ $1.php?$2=$3&$4=$5&$6=$7 [L]
RewriteRule ^(.*)-(.*)-(.*)-(.*)-(.*).html$ $1.php?$2=$3&$4=$5 [L]
RewriteRule ^(.*)-(.*)-(.*).html$ $1.php?$2=$3 [L]
RewriteRule ^(.*).html$ $1.php [L]
#######
RewriteRule ^(.*).rss$ extern.php?action=$1&type=rss [L]
RewriteRule ^blabla.html$ index.php [L]

When I turn url rewriting to "on" it converts the dynamic pages to static ones but gives me 404 errors for most pages.

Now that the url rewiting is turned "on" the   'o_rewrite_urls' => '0', line keeps changing back to  'o_rewrite_urls' => '1', in cache/cache_config.php file.

I can get the forum to work once I turn url rewriting to "off" but I loss my search engine friendly static urls.

Can anyone help.  PS I my hosting company is 1and1.com if that helps

Offline

 

#2 2008-01-22 20:09:47

mag
New member
Ranking
Registered: 2008-01-07
Posts: 9
Reputation :  [+ 0/ -0 ]
Expertise

Re: URL Rewriting On = 404 errors

I have the same problem, it works only with rewrite off. I believe there is a problem in
.htaccess script. Tried to change it, but so far no luck. By the way, when I update customizable site settings, it for some reason gets back to err 404. I also have 1and1 service, but they saying the problem in the script.

Offline

 

#3 2008-01-23 00:55:44

mib
Member
RankingRankingRankingRanking
Registered: 2006-07-12
Posts: 182
Reputation :  [+ 11/ -1 ]
Expertise

Re: URL Rewriting On = 404 errors

Many users using Static URL version because their server is mod_rewrite option enable.
If your server does not support Rewrite rule of  .htaccess  Then ask your hosting provider to enable mod_rewrite option . Other wise you have to redirect it to dynamic url .  Click me


Now that the url rewiting is turned "on" the   'o_rewrite_urls' => '0', line keeps changing back to  'o_rewrite_urls' => '1', in cache/cache_config.php file.

After changing  'o_rewrite_urls' => '0' then Go to your login page Like: www.your_forum.com/login.php

Login as admin then go to :
Admin menu > Options > SEO TAB > SET URL Rewriting = "NO"   [SAVE]

Offline

 

#4 2008-01-23 14:38:13

RonPaul-WI.Net
New member
Ranking
Registered: 2008-01-22
Posts: 2
Reputation :  [+ 0/ -0 ]
Expertise

Re: URL Rewriting On = 404 errors

Okay I got a little closer to solving the problem.  I recontacted 1and1.com with the discussion of this topic and they sent this back.

http://faq.1and1.com/scripting_language … ess/4.html

1and1 had me add these 3 lines of code to the .htaccess file

RewriteEngine on - This was already in my .htaccess file.
RewriteBase / - This line made is so the main pages worked; like index.html, userlist.html, search.html
RewriteRule ^([a-z]+)\.html$ /index.php?$1 [R,L] - This line of code didn't seems to do anything.

So now we got the main dynamic pages to turn into static pages with url rewiting on but the topic pages still give a 404 error and look like this.

http://www.ronpaul-wi.net/FREEDOM_OF_SPEECH/f2-mass-media.html

Any new suggestions?

Offline

 

Board footer

OPML feedsRSS feeds



Powered by WWWThreads Forum
© Copyright 2006, WWWThreads