rewrite issue
6 posts
• Page 1 of 1
rewrite issue
hello i am trying to rewrite the following without success:
i want all blog entries like e.g.
http://www.mydomain.com/blogengine/post/2013/02/01/Bla-Bla.aspx
to become
http://www.mydomain.com/blog/2013/02/01/Bla-Bla
and this: http://www.mydomain.com/blogengine/ should simply become this: http://www.mydomain.com/blog
Thanks for any help:-)
i want all blog entries like e.g.
http://www.mydomain.com/blogengine/post/2013/02/01/Bla-Bla.aspx
to become
http://www.mydomain.com/blog/2013/02/01/Bla-Bla
and this: http://www.mydomain.com/blogengine/ should simply become this: http://www.mydomain.com/blog
Thanks for any help:-)
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: rewrite issue
Hello,
Please, tru to use the following in your .htaccess file:
Regards
Andrew
Please, tru to use the following in your .htaccess file:
- Code: Select all
RewriteEngine on
RewriteRule ^blogengine/post/(.*)\.aspx$ /blog/$1 [NC,R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^blog/(.*)$ /blogengine/post/$1.aspx [NC,L]
Regards
Andrew
Re: rewrite issue
Hello Andrew,
thanks,
the second rule works just fine,
unfortunately the first rule:
RewriteRule ^blogengine/post/(.*)\.aspx$ /blog/$1 [NC,R=301,L]
does not show any effect.
this: http://www.mydomain.com/blogengine/ should become this: http://www.mydomain.com/blog
but it just stays at http://www.mydomain.com/blogengine/
Any idea?
thanks,
the second rule works just fine,
unfortunately the first rule:
RewriteRule ^blogengine/post/(.*)\.aspx$ /blog/$1 [NC,R=301,L]
does not show any effect.
this: http://www.mydomain.com/blogengine/ should become this: http://www.mydomain.com/blog
but it just stays at http://www.mydomain.com/blogengine/
Any idea?
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: rewrite issue
So there's no "post" folder? Does it work with "post" being removed from the rule?
Regards
Andrew
Regards
Andrew
Re: rewrite issue
no, there is no "post" and also no .aspx
simply
http://www.mydomain.com/blogengine/
should become this:
http://www.mydomain.com/blog
any idea?
simply
http://www.mydomain.com/blogengine/
should become this:
http://www.mydomain.com/blog
any idea?
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: rewrite issue
These are the rules, however you might need to provide the rewrite.log for the testing request.
Logging issues described in FAQ
Regards
Andrew
Logging issues described in FAQ
- Code: Select all
RewriteEngine on
RewriteRule ^blogengine/(.*)$ /blog/$1 [NC,R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^blog/(.*)$ /blogengine/$1 [NC,L]
Regards
Andrew
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests