Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7720327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:38:39+00:00 2026-06-01T03:38:39+00:00

I need rewrite this url http://adresa.com/article.php?act=view&id=1113 to http://adresa.com/view/1113 I make it with mod_rewrite in

  • 0

I need rewrite this url http://adresa.com/article.php?act=view&id=1113 to http://adresa.com/view/1113

I make it with mod_rewrite in .htaccess but it doesn’t work.

RewriteBase /
RewriteCond %{QUERY_STRING} ^act=([^&]+)$
RewriteRule ^article\.php$ %1.html? [R=301,L,NE]
RewriteRule ^([^/]+)\.html article.php?rw=1&act=$1 [L,QSA] 
RewriteRule ^([^/]+)/{1}([^/.]+)\.html article.php?rw=1&act=$1&id=$2 [L,QSA]

Can somebody help me please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T03:38:41+00:00Added an answer on June 1, 2026 at 3:38 am

    Here’s the solution (with proper line-separation to avoid confusion (RewriteCond is valid for only one following RewriteRule, so put a blank line after to avoid confusion)):

    RewriteBase /
    
    RewriteRule /view/([0-9+])$ /article.php?act=view&id=$1 [QSA,L]
    
    RewriteCond %{QUERY_STRING} ^act=([^&]+)$
    RewriteRule ^article\.php$ %1.html? [R=301,L,NE]
    
    RewriteRule ^([^/]+)\.html article.php?rw=1&act=$1 [L,QSA] 
    RewriteRule ^([^/]+)/{1}([^/.]+)\.html article.php?rw=1&act=$1&id=$2 [L,QSA]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following url: http://example.com/folder/index.php?module=centrale&DIO0=1 I need this page to be availeble with
I need a rewrite rule for this url http://localhost/~user/frame/lib/index.php?/controller/method/12/22/ How can i rewrite it
I need to rewrite this url : http://localhost/blog/post.php?id=48 into http://localhost/blog/post/48 which is in localhost
I have this URL: http://hostX.site.com/some_path_here/filename.jpg and need to rewrite it to: http://host.site.com/same_path_here/filenameX.jpg Can you
I am wanting to rewrite a url like: http://my.project/mydomain.com/ANY_NUMBER_OF_CATEGORIES/designer/4/designer-name/page.html to this: http://my.projects/mydomain.com/ANY_NUMBER_OF_CATEGORIES/page.html?designer=4 I would
i have a url like this http://example.com/blog/photos/photos/gallery/image/1 . And i need to remove the
I have url as http://www.mydomain.com/levels/home?mode=48bb6e862e54f2a795ffc4e541caed5c . I need to change this url to http://www.mydomain.com/medium
I'm trying to rewrite an url from: http://domain.com/aa/whatever/whatever.php to http://domain.com/whatever/whatever.php?language=aa However, depending on existing
I need to rewrite the following URL: http://example.com/folder/subfolder/filename to http://example.com/folder/subfolder/filename.txt I've tried the following:
I have this url: http://www.mydomain.com/index.html And want a rule to rewrite the above into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.