Jump to content

Mod_Rewrite help?


CheersnGears

Recommended Posts

Hello, I just upgraded to 4.1 from 3.4.  The URLs for my articles appear to be broken.

My old url structure was site_url/_/article_category/article_title

My new url structure is site_url/articles/article_category/article_title

I have already put in a ticket, but IPS has determined that helping me with this is outside of their scope of support.

I've added this line to my .htaccess, but it doesn't seem to be helping.

RewriteRule ^_/$ /articles/? [L,R=301]

Here is the full text of my Mod_Rewrite

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^page/index.html/(.*)$ https://www.cheersandgears.com/$1 [R=301,L]
RewriteBase /
RewriteRule ^_/$ /articles/? [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico)(\?|$) - [L,NC,R=404]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
RewriteCond %{HTTP_HOST} ^cheersandgears\.autohosts\.net$ [OR]
RewriteCond %{HTTP_HOST} ^www\.cheersandgears\.autohosts\.net$
RewriteRule ^/?$ "http\:\/\/192\.157\.233\.68\/" [R=301,L]
</IfModule>

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...